package com.snopy.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author snopy
 * @version 1.0.0
 * @classname WebMvcConfig
 * @description
 * @email 77912204@qq.com
 * @date 2020/10/17 9:58
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {


    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/**")
                .addResourceLocations("classpath:/META-INF/resources/")     // 映射swagger2
                .addResourceLocations("file:/workspaceA/images/");  //
    }


}
